Package-level declarations

Types

Link copied to clipboard

Identifies the location at which to place a chart's legend.

Link copied to clipboard
interface LegendScope

Scope for the children of a ColumnLegend or GridLegend.

Functions

Link copied to clipboard
fun ColumnLegend(itemCount: Int, symbol: @Composable LegendScope.(item: Int) -> Unit = {}, label: @Composable LegendScope.(item: Int) -> Unit = {}, value: @Composable LegendScope.(item: Int) -> Unit = {}, rowGap: Dp = KoalaPlotTheme.sizes.gap, columnGap: Dp = KoalaPlotTheme.sizes.gap, modifier: Modifier = Modifier)

Creates a legend with itemCount legend items laid out vertically in a column. Each row of the legend consists of a symbol, label, and value.

Link copied to clipboard
fun FlowLegend(itemCount: Int, symbol: @Composable LegendScope.(item: Int) -> Unit = {}, label: @Composable LegendScope.(item: Int) -> Unit = {}, symbolGap: Dp = KoalaPlotTheme.sizes.gap, columnGap: Dp = KoalaPlotTheme.sizes.gap, rowGap: Dp = KoalaPlotTheme.sizes.gap, modifier: Modifier = Modifier)

A flow layout type of legend where each entry will take as much horizontal space as it requires, up to the maximum width of the component. Multiple legend entries will be placed in the same row until all horizontal space is consumed.